package com.sc.server.system.auth.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.sc.server.system.common.base.BaseSystemVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.NonTransientResourceException;
import org.springframework.batch.item.ParseException;
import org.springframework.batch.item.UnexpectedInputException;

/**
 * <p>
 * 菜单管理
 * </p>
 *
 * @author zw
 * @since 2020-03-05
 */
@TableName("sys_menu")
@Data
public class Menu  extends BaseSystemVo {
private static final long serialVersionUID=1L;


        
    /**
     * 父菜单ID，一级菜单为0
     */
    @TableField(value = "parent_id")
      @ApiModelProperty(value="父菜单ID，一级菜单为0", example="父菜单ID，一级菜单为0")
    private Long parentId;

    /**
     * 菜单名称
     */
    @TableField(value = "name")
      @ApiModelProperty(value="菜单名称", example="菜单名称")
    private String name;

    /**
     * 菜单URL
     */
    @TableField(value = "url")
      @ApiModelProperty(value="菜单URL", example="菜单URL")
    private String url;

    /**
     * 授权(多个用逗号分隔，如：user:list,user:create)
     */
    @TableField(value = "perms")
      @ApiModelProperty(value="授权(多个用逗号分隔，如：user:list,user:create)", example="授权(多个用逗号分隔，如：user:list,user:create)")
    private String perms;

    /**
     * 类型   0：目录   1：菜单   2：按钮
     */
    @TableField(value = "type")
      @ApiModelProperty(value="类型   0：目录   1：菜单   2：按钮", example="类型   0：目录   1：菜单   2：按钮")
    private Integer type;

    /**
     * 菜单图标
     */
    @TableField(value = "icon")
      @ApiModelProperty(value="菜单图标", example="菜单图标")
    private String icon;

    /**
     * 排序
     */
    @TableField(value = "order_num")
      @ApiModelProperty(value="排序", example="排序")
    private Integer orderNum;

    /**
     * 
     */
    @TableField(value = "method")
      @ApiModelProperty(value="", example="")
    private String method;

}
